package com.step.ems.api.res

import com.google.gson.annotations.SerializedName

data class PageRes<T>(
    @SerializedName("current")
    val pageIndex: Int,
    val total: Int,
    var records: List<T>,
)

fun <T> emptyPage(): PageRes<T> {
    return PageRes(1, 0, emptyList())
}
